<!--{template common/header}-->
<link rel="stylesheet" href="static/oppo/oppo.css"/>
<div id="pt" class="bm cl">
	<div class="z">
		<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
		<a href="oppo.php?mod=admin">ROM管理</a> <em>&rsaquo;</em>
		<span>ROM发布人员管理</span>
	</div>
</div>

<div id="ct" class="ct2_a wp cl">
	<div class="mn">
		<form action="<!--{$theurl}-->" method="post" class="rfm">
			<table>
				<tbody>
					<tr>
						<td>用户名称：</td>
						<td><input type="text" class="px" name="user_name" value="<!--{$userName}-->"/></td>
					</tr>
					<tr>
						<td>选择机型：</td>
						<td>
							<!--{loop $productList $product}-->
							<!--{eval $checked = in_array($product['product_id'], $currProductIdArr) ? 'checked="checked"' : '';}-->
							<label><input type="checkbox" value="{$product['product_id']}" name="product_id[]" <!--{$checked}-->/> {$product['product_name']}</label>
							<!--{/loop}-->
						</td>
					</tr>
					<tr>
						<td>发布级别：</td>
						<td>
							<!--{loop $publishLevel $key $value}-->
							<!--{eval $checked = in_array($key, $currLevelIdArr) ? 'checked="checked"' : '';}-->
							<label><input type="checkbox" value="{$key}" name="level_id[]" <!--{$checked}-->/> {$value}</label>
							<!--{/loop}-->
						</td>
					</tr>
					<tr>
						<td></td>
						<td>
							<input type="hidden" name="permissionsubmit" value="true"/>
							<button type="submit" name="permissionsubmitbtn" id="permissionsubmitbtn" value="true" class="pn pnc"><strong><!--{$btnValue}--></strong></button>
						</td>
					</tr>
				</tbody>
			</table>
		</form>
		<table class="dt mtm">
			<tbody>
				<tr>
					<th>ID</td>
					<th>用户名</td>
					<th>选择机型</td>
					<th>发布级别</td>
					<th>操作</td>
				</tr>
				<!--{loop $list $row}-->
				<tr>
					<td>{$row['uid']}</td>
					<td>{$row['user_name']}</td>
					<td>{$row['products']}</td>
					<td>{$row['levels']}</td>
					<td><a href="<!--{$theurl}-->&act=edit&uid={$row['uid']}&username=<!--{eval echo urlencode($row['user_name']);}-->">修改权限</a>&nbsp;&nbsp;&nbsp;<a href="javascript:;" onclick="javascript:permission.del('{$row['uid']}')">删除用户</a></td>
				</tr>
				<!--{/loop}-->
			</tbody>
		</table>
	</div>
	<div class="appl">
		<!--{subtemplate oppo/oppo_nav}-->
	</div>
</div>

<script type="text/javascript">
var permission = {};
permission.del = function(uid) {
	if (confirm('确定要删除吗？')) {
		window.location.href = '<!--{$theurl}-->&act=del&uid=' + uid;
	}
}
</script>
<!--{template common/footer}-->